#!/usr/bin/env bash
kubectl create secret docker-registry regcred --docker-server=registry.cn-chengdu.aliyuncs.com --docker-username=joy360_hr@163.com --docker-password=hy123456 --docker-email=ebillow@163.com

#kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "regcred"}]}'
#kubectl get serviceaccounts default -o yaml > ./sa.yaml
#imagePullSecrets:
#- name: regcred